#include "multiresultcommand.h"

namespace Commands
{
	MultiResultCommand::MultiResultCommand(SocketAddress* s, bool needs_result) :
		Command(s, needs_result)
	{
	}

	string MultiResultCommand::result()
	{
		return Command::result();
	}

	void MultiResultCommand::setResult(string res, SocketAddress const addr)
	{
		if (_results.size() == 0)
			Command::setResult(res);
		_results.push_back(OrigRepr(addr,res));
	}

	vector<MultiResultCommand::OrigRepr> MultiResultCommand::results()
	{
		return _results;
	}
}
